Release 10.1A: OpenEdge Development:
Web Services
Handling errors on the client
To understand how to handle SOAP fault messages returned by the WSA, first note that the
<FaultDetail>element is described in the interface Java class,servicehost/FaultDetail.java. For examples:
Place a
try...catchblock around any code that accesses the Web server and catch theAxisFaultexception.This is an example of Axis client code to catch a SOAP fault (an
AxisFaultexception):
Caution: In any
catchblock where you exit the program, you must release all Web service objects you created in the program.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |